package com.tanhua.model.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "focus")
public class Focus implements Serializable {

    private static final long serialVersionUID = 6103135946820874230L;
    private ObjectId id; //主键id
    private Long userId; //操作人
    private Long toUserId;//被关注人
    private Long created;//创建时间

}
